package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.AdTicketClassify2;
import com.ruoyi.cat.mapper.AdTicketClassify2Mapper;
import com.ruoyi.cat.service.IAdTicketClassify2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 分类 小类Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
@Service
public class AdTicketClassify2ServiceImpl implements IAdTicketClassify2Service
{
    @Autowired
    private AdTicketClassify2Mapper adTicketClassify2Mapper;

    /**
     * 查询分类 小类
     * 
     * @param id 分类 小类主键
     * @return 分类 小类
     */
    @Override
    public AdTicketClassify2 selectAdTicketClassify2ById(Long id)
    {
        return adTicketClassify2Mapper.selectAdTicketClassify2ById(id);
    }

    /**
     * 查询分类 小类列表
     * 
     * @param adTicketClassify2 分类 小类
     * @return 分类 小类
     */
    @Override
    public List<AdTicketClassify2> selectAdTicketClassify2List(AdTicketClassify2 adTicketClassify2)
    {
        return adTicketClassify2Mapper.selectAdTicketClassify2List(adTicketClassify2);
    }

    /**
     * 新增分类 小类
     * 
     * @param adTicketClassify2 分类 小类
     * @return 结果
     */
    @Override
    public int insertAdTicketClassify2(AdTicketClassify2 adTicketClassify2)
    {
        return adTicketClassify2Mapper.insertAdTicketClassify2(adTicketClassify2);
    }

    /**
     * 修改分类 小类
     * 
     * @param adTicketClassify2 分类 小类
     * @return 结果
     */
    @Override
    public int updateAdTicketClassify2(AdTicketClassify2 adTicketClassify2)
    {
        return adTicketClassify2Mapper.updateAdTicketClassify2(adTicketClassify2);
    }

    /**
     * 批量删除分类 小类
     * 
     * @param ids 需要删除的分类 小类主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketClassify2ByIds(Long[] ids)
    {
        return adTicketClassify2Mapper.deleteAdTicketClassify2ByIds(ids);
    }

    /**
     * 删除分类 小类信息
     * 
     * @param id 分类 小类主键
     * @return 结果
     */
    @Override
    public int deleteAdTicketClassify2ById(Long id)
    {
        return adTicketClassify2Mapper.deleteAdTicketClassify2ById(id);
    }

    @Override
    public AdTicketClassify2 selectPreviousRecord1(Long currentSort) {
        return adTicketClassify2Mapper.selectPreviousRecord1(currentSort);
    }

    @Override
    public AdTicketClassify2 selectNextRecord1(Long currentSort) {
        return adTicketClassify2Mapper.selectNextRecord1(currentSort);
    }

}
